package com.fuyao.cloud.admin.flow.listener;

import org.flowable.common.engine.api.delegate.event.FlowableEngineEntityEvent;
import org.flowable.engine.delegate.event.AbstractFlowableEngineEventListener;
import org.springframework.stereotype.Component;

@Component
public class MyFlowableEngineEventListener extends AbstractFlowableEngineEventListener {

    @Override
    protected void taskCreated(FlowableEngineEntityEvent event) {
        System.out.println("taskCreated:" + event);
    }

    @Override
    protected void taskAssigned(FlowableEngineEntityEvent event) {
        System.out.println("taskAssigned:" + event);
    }

    @Override
    protected void taskCompleted(FlowableEngineEntityEvent event) {
        System.out.println("taskCompleted:" + event);
    }
}
